#ifndef XSLIDERTHREAD_H
#define XSLIDERTHREAD_H

#include <QThread>
#include "xvideothread.h"

class XSliderThread : public QThread
{
    Q_OBJECT
public:

    //单例模式
    static XSliderThread* getInstance() {
        static XSliderThread vt;
        return &vt;
    }

    //线程入口函数
    void run();

    bool isExit = false; //是否退出

signals:
    void sigSendPos(double pos);
private:
    explicit XSliderThread(QObject *parent = nullptr);
     QMutex mutex;
};

#endif // XSLIDERTHREAD_H
